package com.wlps.vo.sendcenter.warehouse;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2020/8/10
 */
@ApiModel(value = "出入单Vo")
@Data
public class InOutVo {
//    类型（出库或入库）、单号、仓库名、商品代码、商品名称、单价、出入库数量、金额、出入库日期
    @ApiModelProperty(value = "出入单类型，0为入单，1为出单")
    private Integer type;
    @ApiModelProperty(value = "单号")
    private Long formId;
    @ApiModelProperty(value = "库房名称")
    private String warehosueName;

    @ApiModelProperty(value = "商品代码")
    private Long commodityId;
    @ApiModelProperty(value = "商品名称")
    private String commdityName;

    @ApiModelProperty(value = "单价")
    private Double unitPrice;

    @ApiModelProperty(value = "出入库数量，即实际入库/出库数量")
    private Long actualVolume;

    @ApiModelProperty(value = "金额")
    private Double amount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
